#include "types.h"

#ifndef _LCD_H_
#define _LCD_H_
//=================================================================
//--------------------------- defines
#define LINES	2
#define WIDTH	20

// instructions
#define	LCD_CLEAR		(0x01)
#define	LCD_RETURN_HOME		0x02
#define	LCD_FIRST_LINE		0x80
#define	LCD_SECOND_LINE		0xC0
#define	LCD_ENTRY_MODE		0x06
#define LCD_DISPLAY_OFF		0x08
#define LCD_DISPLAY_ON		0x0F
#define	LCD_CURSOR		0x14
#define	LCD_FUNCTION_SET	0x28

// prototypes

void	lcd_init(void);
//UINT8	lcd_check_busy(void);
void	lcd_goto1line(void);
void	lcd_goto2line(void);
void	lcd_clear(void);
void	lcd_home(void);
void	lcd_command(byte cmd);
void	lcd_data(byte dat);
void	lcd_text(char* text, byte length);

#endif //_LCD_H_